package string;

import java.util.Arrays;

public class SplitDemo {
    public static void main(String[] args) {
        String line="..6178..1.5..";
        String[] data=line.split("[.]");
        StringBuilder sb=new StringBuilder();
        for (int i = 0; i < data.length; i++) {
            sb.append(data[i]);
        }
        System.out.println(sb);
    }
}
